/*
 Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 SPDX-License-Identifier: Apache-2.0
*/
@use '../internal/styles' as styles;
@use '../internal/styles/tokens' as awsui;

.root {
  @include styles.styles-reset;
  list-style: none;
  padding-block: 0;
  padding-inline: 0;
  margin-block: 0;
  margin-inline: 0;
  position: relative;
}

.item {
  &:not(:last-child) {
    border-block-end: awsui.$border-divider-list-width solid awsui.$color-border-divider-secondary;
  }
  &:not(.disable-item-paddings) {
    padding-block: awsui.$space-scaled-xs;
  }
  &:first-child.disable-paddings {
    padding-block-start: 0;
  }
  &:last-child.disable-paddings {
    padding-block-end: 0;
  }
}

.sortable-item {
  display: flex;
  align-items: baseline;
  &:not(.disable-item-paddings) {
    column-gap: awsui.$space-xxs;
  }
}
